package com.zl.classroommanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zl.classroommanagement.mapper.StartcallMapper;
import com.zl.classroommanagement.domain.Startcall;
import com.zl.classroommanagement.service.IStartcallService;

/**
 * 开始点名Service业务层处理
 *
 * @author zl
 * @date 2022-04-23
 */
@Service
public class StartcallServiceImpl implements IStartcallService
{
    @Autowired
    private StartcallMapper startcallMapper;

    /**
     * 查询开始点名
     *
     * @param id 开始点名主键
     * @return 开始点名
     */
    @Override
    public Startcall selectStartcallById(String id)
    {
        return startcallMapper.selectStartcallById(id);
    }

    /**
     * 查询开始点名列表
     *
     * @param startcall 开始点名
     * @return 开始点名
     */
    @Override
    public List<Startcall> selectStartcallList(Startcall startcall)
    {
        return startcallMapper.selectStartcallList(startcall);
    }

    /**
     * 新增开始点名
     *
     * @param startcall 开始点名
     * @return 结果
     */
    @Override
    public int insertStartcall(Startcall startcall)
    {
        return startcallMapper.insertStartcall(startcall);
    }

    /**
     * 修改开始点名
     *
     * @param startcall 开始点名
     * @return 结果
     */
    @Override
    public int updateStartcall(Startcall startcall)
    {
        return startcallMapper.updateStartcall(startcall);
    }

    /**
     * 批量删除开始点名
     *
     * @param ids 需要删除的开始点名主键
     * @return 结果
     */
    @Override
    public int deleteStartcallByIds(String[] ids)
    {
        return startcallMapper.deleteStartcallByIds(ids);
    }

    /**
     * 删除开始点名信息
     *
     * @param id 开始点名主键
     * @return 结果
     */
    @Override
    public int deleteStartcallById(String id)
    {
        return startcallMapper.deleteStartcallById(id);
    }
}
